require 'drb'

class G_Share
  #@all_clients = []

  def initialize
    @all_clients = []
  end

  def add_client(clt)
    @all_clients.push clt
  end

  def all_clients
    @all_clients
  end
end


Thread.new do
  share = G_Share.new
  DRb.start_service("druby://0.0.0.0:4000",share)
  DRb.thread.join
end
